package org.chs.ts.batch.thread;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @Compay 盛唐天行
 * @Author: wuwei
 * @Censor By wuwei
 * @Sence 2023/1/5 13:53
 * @Modify 2023/1/5 13:53
 * @Description 批量处理线程池 配置参数 通过读取 nacos配置文件获取
 */
@Setter
@Getter
@Data
@ConfigurationProperties("batch.thread-pool")
@RefreshScope
@Configuration
public class BatchThreadPoolProperties {
    /** 核心线程数 */
    private int corePoolSize;
    /** 最大线程数 */
    private int maxPoolSize;
    /** 线程等待队列数 */
    private int queueCapacity;
    /** 线程空闲时间 */
    private int keepAliveSeconds;
    /** 线程前缀 */
    private String namePrefix;

    public BatchThreadPoolProperties() {
    }

}
